Strategy
objects.Strategy()
Class representing a strategy in FloodAdapt.
A strategy is a collection of measures that can be applied to a model.
Attributes
Methods
Name | Description |
---|---|
get_measures | Get the measures associated with this strategy. |
initialize_measure_objects | Initialize the measure objects associated with this strategy. |
get_measures
objects.Strategy.get_measures()
Get the measures associated with this strategy.
Note that this method will return the measure objects, not just their names. The measure objects are initialized using the initialize_measure_objects
method.
Returns
Raises
: ValueError
-
If the measure objects have not been initialized.
initialize_measure_objects
list[Measure]) objects.Strategy.initialize_measure_objects(measures:
Initialize the measure objects associated with this strategy.